package cn.echogo.framework.activity;

import android.content.Context;
import android.os.Bundle;

public interface AsyncExecutor {
	
	void submit(int id, Bundle params);
	
	void cancel(int id);

	void setAsyncExecuteListener(AsyncExecuteListener asyncExecuteListener);

}


interface AsyncExecuteListener {
	
	Context getContext();
	
	void onExecute(int id, Bundle params);
	
	void onPostExecute(int id, Bundle params);
	
	void onException(int id, Bundle params);
	
	void onCancel(int id);
	
}
